app.controller('PrizeCtrl', ['$scope', '$q', 'apiService',
    function(scope, $q, apiService) {
		
		scope.levelMap = {1:'一', 2: '二', 3: '三', 4 : '四', 5 :'五', 6 : '六'};
		
		var init = function() {
			loadPrizes();
		};
		
		var loadPrizes = function() {
			apiService.get("/double11/draw/list").then(function(resp){
				if (resp && resp.data) {
					scope.prizes = resp.data;
					console.log(scope.prizes);
				} else {
					// todo
				}
			}, function(error){
				console.log(error);
			});
		};
		
		init();
	}
]);